package controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;


@Controller
public class CommonController {
	
	@RequestMapping("/login")
	public String login(String uname,int age,Model m){
		System.out.println("uname:"+uname+"+age:"+age);
		m.addAttribute("uname",uname);
		m.addAttribute("age", age);
		return "suc";
	}
	
	@RequestMapping("/regist")
	public String regist(){
		return "regist";
	}
	
	
	
	
}
